<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
	</head>
	<body>
		<div id="app">
			<p v-if="seen">你看到了喔</p>		
			<a v-bind:href="url">连接</a>
			
			<div @click="click1">
				<!-- @click.stop 不往上层传递 -->
				<div @click.stop="click2">
					click me
				</div>
			</div>
		</div>	
		<script>
			var app=new Vue({
				el:'#app',
				data:{
					seen:true,
					url:'https://cn.vuejs.org/v2/guide/syntax.html'
				},
				methods:{
					click1:function(){
						console.log('click1.....');
					},
					click2:function(){
						console.log('click2.....');
					}
				}
			});
		</script>	
		<style>
			.red{color: red;}
			.blue{color: blue;font-size: 100px;}
		</style>
	</body>
</html>
